package com.horsen.service.user.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.horsen.service.base.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 管理员控制类
 *
 * @author Horsen
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("user_admin")
@ApiModel("管理员")
public class Admin extends BaseModel {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户名")
    private String name;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("管理员头像")
    private String avatar;

    @ApiModelProperty("角色")
    private String roles;

    @ApiModelProperty("是否禁用(1已禁用,0未禁用)")
    @TableField("is_disabled")
    private Boolean disabled;

}
